import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../pages/Home/index.vue';
import Login from '../pages/Login/index.vue';
import Code from '../pages/Code/index.vue';
import Message from '../pages/Message/index.vue';
Vue.use(VueRouter);

let router = new VueRouter({
    linkActiveClass: 'active',
    routes: [
        {
            // 主页
            path: '/',
            name: 'Home',
            component: Home
        }, {
            // 登录页
            path: '/login',
            name: 'Login',
            component: Login
        }, {
            // 扫码页面
            path: '/code',
            name: 'Code',
            component: Code
        }, {
            // 消息页面
            path: '/message',
            name: 'Message',
            component: Message
        }
    ]
});
export default router;